<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <el-checkbox label="hello" v-model="helloNum" @change="changeFunc($event,1)"></el-checkbox>
    </div>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.0/vue.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/element-ui/2.15.3/index.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data() {
                return {
                    helloNum: ''
                }
            },
            methods: {
                changeFunc(val,i) {
                    console.log(val,i)

                    //打印结果是：true/false ,'参数'

                }
            }
        });
    </script>
</body>

</html>